const regiseter = (app) => {
  return (routerList = []) => {
    routerList.forEach(router => {
      app.use(router.routes())
      app.use(router.allowedMethods()) //当请求不存在的时候，会报Method Not Allowed
    })
  }
}

module.exports = regiseter